﻿using Domain.Entity.Order_goods;
using Domain.Entity.Waybill_cargo_management;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.Waybill_cargo_management
{
    public class Wb_cgConfiger : IEntityTypeConfiguration<Wb_cg>
    {
        public void Configure(EntityTypeBuilder<Wb_cg> builder)
        {
            builder.ToTable(nameof(Wb_cg));
            builder.HasKey(e => e.Wb_cgid);
            builder.Property(e => e.Wb_cgid).HasColumnType("bigint");
            builder.Property(e => e.Wb_id).HasColumnType("int");
            builder.Property(e => e.Ord_id).HasColumnType("int");
            builder.Property(e => e.Cg_num).HasColumnType("int");
        }
    }
}
